package nuc.ss.wl.service;

import nuc.ss.wl.entity.Teacher;

import java.util.List;

public interface TeacherService {
    /**
     * 添加老师
     * @param teacher
     * @return
     */
    public int add(Teacher teacher);

    /**
     *查询所有老师信息
     * @return
     */
    public List<Teacher> findAll();

    /**
     * 多条件查询老师信息
     * @param tno
     * @param tname
     * @return
     */
    public List<Teacher> findTea(int tno, String tname);

    /**
     * 删除指定老师
     * @param tno
     * @return
     */
    public int delete(int tno);

    /**
     * 按照指定教师号查询教师信息
     * @param tno
     * @return
     */
    public Teacher findById(int tno);

    /**
     * 更新教师信息
     * @param teacher
     * @return
     */
    public int update(Teacher teacher);
}
